﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using simpleHotel.Business;
using simpleHotel.Data;
using simple.Utilities;

namespace simpleHotel.Web
{
    public partial class PromotionDetail : PageBase
    {
        ObjPromotions obj = new ObjPromotions();

        protected void Page_Load(object sender, EventArgs e)
        {            
            int pid = Int32.Parse(Request.QueryString["pid"]);
            if (pid == null)
            {
                return;
            }

            if (!IsPostBack)
            {                
                dlPromotionDetail.DataSource = obj.getPromotionByID(pid); ;
                dlPromotionDetail.DataBind();
            }
        }
    }
}